package com.wisezone.permission.service;

import java.io.Serializable;
import java.util.Collection;

import org.apache.commons.lang.StringUtils;

import com.wisezone.common.exception.WzServiceException;
import com.wisezone.common.service.BaseService;
import com.wisezone.permission.bean.entity.WzUserEntity;
import com.wisezone.permission.bean.entity.WzUserGroupEntity;
import com.wisezone.permission.bean.entity.WzUserRoleEntity;

/**
 * 
 *用户; InnoDB free: 24576 kB
 * 
 * @author create by create date 2010-07-29 14:44:49 update date 2010-07-29
 *         14:44:49
 * 
 */
public interface WzUserService extends BaseService {

	/**
	 * 登录
	 * 
	 * @param loginName
	 * @param password
	 * @return
	 * @throws WzServiceException
	 */
	public WzUserEntity login(String loginName, String password)
			throws WzServiceException;

	/**
	 * 保存或修改用户
	 * 
	 * @param entity
	 * @param resIds
	 * @throws WzServiceException
	 */
	public void saveOrUpdate(WzUserEntity entity, String roleIds,
			String groupIds) throws WzServiceException;

	/**
	 * 删除用户
	 * 
	 * @param idList
	 * @throws WzServiceException
	 */
	public void delete(Collection<Serializable> idList)
			throws WzServiceException;

}